#coding=utf-8
__author__ = 'chutf'
__date__ = '2020/3/27 20:56'


from django.conf.urls import url

from organization.views import OrgView,AddUserAskView,OrgHomeView,OrgCourseView,OrgDesciew,OrgTeachersView,AddFavView
from organization.views import TeacherListView,TeacherDetailView

urlpatterns = [
    url(r'^list/$', OrgView.as_view(), name="org_list"),
    url(r'^add_ask/$', AddUserAskView.as_view(), name="add_ask"),
    url(r'^home/(?P<org_id>\d+)$', OrgHomeView.as_view(), name="org_home"),
    url(r'^course/(?P<org_id>\d+)$', OrgCourseView.as_view(), name="org_course"),
    url(r'^desc/(?P<org_id>\d+)$', OrgDesciew.as_view(), name="org_desc"),
    url(r'^org_teacher/(?P<org_id>\d+)$', OrgTeachersView.as_view(), name="org_teachers"),

    #用户收藏
    url(r'^add_fav/$', AddFavView.as_view(), name="add_fav"),

    #机构讲师列表页
    url(r'^teacher/list/$', TeacherListView.as_view(), name="teacher_list"),

    #讲师详情页
    url(r'^teacher/detail/(?P<teacher_id>\d+)$', TeacherDetailView.as_view(), name="teacher_detail"),

]